package com.xsh.explorer.config;


import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;


/**
 * Created by Administrator on 2017/8/3.
 */
public class MVCLoader extends AbstractAnnotationConfigDispatcherServletInitializer{

    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class<?>[0];
    }
//web.xml中的
    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class<?>[]{WebConf.class};
    }

    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
